$OpenBSD: patch-config_h_cmake,v 1.6 2017/02/02 21:36:18 sthen Exp $

- use cmake's "find_package(Backtrace)" from FindBacktrace.cmake.
this covers the case of BSDs where the symbols are in libexecinfo.so
not in libc.

- compiled-in ICINGA_SYSCONFDIR needs to be the standard one (/etc),
but cmake should install files to an examples directory in our staging
dir (${PREFIX}/share/examples/icinga2), package tools copy them under
/etc at install time.

--- config.h.cmake.orig	Tue Jan 31 10:18:20 2017
+++ config.h.cmake	Thu Feb  2 14:06:02 2017
@@ -1,11 +1,10 @@
 #ifndef CONFIG_H
 #define CONFIG_H
 
-#cmakedefine HAVE_BACKTRACE_SYMBOLS
+#cmakedefine01 Backtrace_FOUND
 #cmakedefine HAVE_PIPE2
 #cmakedefine HAVE_VFORK
 #cmakedefine HAVE_DLADDR
-#cmakedefine HAVE_LIBEXECINFO
 #cmakedefine HAVE_CXXABI_H
 #cmakedefine HAVE_NICE
 #cmakedefine HAVE_EDITLINE
@@ -13,7 +12,7 @@
 #cmakedefine ICINGA2_UNITY_BUILD
 
 #define ICINGA_PREFIX "${CMAKE_INSTALL_PREFIX}"
-#define ICINGA_SYSCONFDIR "${CMAKE_INSTALL_FULL_SYSCONFDIR}"
+#define ICINGA_SYSCONFDIR "%SYSCONFDIR%"
 #define ICINGA_RUNDIR "${ICINGA2_RUNDIR}"
 #define ICINGA_LOCALSTATEDIR "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}"
 #define ICINGA_PKGDATADIR "${CMAKE_INSTALL_FULL_DATADIR}/icinga2"
